﻿using Hospital.Model.type;
using SqlSugar;

namespace Hospital.Model.entity
{
    // 医生信息
    public class Doctor : BaseId
    {
        public string? Name { get; set; }
        [SugarColumn(Length = 2)]
        public string? Static { get; set; }
        public int DepartmentId { get; set; } // 所属科室
        public int JobTitleId { get; set; }
        public int SpecialtyId { get; set; }

        [SugarColumn(IsNullable = true)]
        public int UserInfoId { get; set; }

        [SugarColumn(IsIgnore = true)]
        public UserInfo? UserInfo { get; set; }

        [SugarColumn(IsIgnore = true)]
        public JobTitle? JobTitle { get; set; } // 职称

        [SugarColumn(IsIgnore = true)]
        public Specialty? Specialty { get; set; } // 专业方向

        [SugarColumn(IsIgnore = true)]
        public Department? Department { get; set; }
    }
}
